package com.kfh.ybracelet.login;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import com.kfh.ybracelet.R;
import com.kfh.ybracelet.base.BaseActivity;


/**
 * 启动页
 */
public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_splash);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                //进入登录页面
                Intent intent = new Intent(SplashActivity.this, LoginActivity.class);
                startActivity(intent);
                finish();
            }
        }, 2000);

    }

    @Override
    public void widgetClick(View v) {

    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        mApplication.exit();
    }
}
